import {request} from '@/utils/request'
export function getMenuList(params) {
    return request({
        url: '/api/fizz-manager/blade-system/menu/lazy-list',
        method: 'get',
        params
    })
}

export function getMenuTree() {
    return request({
        url: 'api/fizz-manager/blade-system/menu/tree',
        method: 'get',
    })
}

export function saveMenu(data) {
    return request({
        url: '/api/fizz-manager/blade-system/menu/submit',
        method: 'post',
        data
    })
}
export function getMenuDetail(id) {
    return request({
        url: '/api/fizz-manager/blade-system/menu/detail?id='+id,
        method: 'get',
    })
}
export function remove(ids) {
    return request({
        url: '/api/fizz-manager/blade-system/menu/remove?ids='+ids,
        method: 'post',
    })
}
